package com.itheima.edu.info.manager.controller;

import com.itheima.edu.info.manager.domain.Student;
import com.itheima.edu.info.manager.service.StudentService;

import java.util.Scanner;

/**
 * @author Xiao
 * @date 2021/7/17
 */
public class StudentController extends StudentController_Base{
    private StudentService stus = new StudentService();
    private Scanner sc = new Scanner(System.in);
    @Override
    public Student inputStuInfo(String sid) {
        Student stu = new Student();
        System.out.println("请输入学生姓名：");
        String name = sc.next();
        System.out.println("请输入学生年龄：");
        int age = sc.nextInt();
        System.out.println("请输入学生生日：");
        String birthday = sc.next();
        stu.setId(sid);
        stu.setName(name);
        stu.setAge(age);
        stu.setBirthday(birthday);
        return stu;
    }


}
